package com.chenwenxuan.sync.ui.editor.desginer;

import java.awt.BorderLayout;
import java.awt.Color;

import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JToolBar;

public class _FormEditor extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3828433823710327806L;
	private JButton btnCancel;
	private JButton btnSave;
	private JButton btnModify;
	private JPanel formContent;

	/**
	 * Create the panel.
	 */
	public _FormEditor() {
		setLayout(new BorderLayout(0, 0));
		
		JToolBar toolBar = new JToolBar();
		toolBar.setFloatable(false);
		add(toolBar, BorderLayout.NORTH);
		
		btnModify = new JButton("\u4FEE\u6539");
		toolBar.add(btnModify);
		
		btnSave = new JButton("\u4FDD\u5B58");
		toolBar.add(btnSave);
		
		btnCancel = new JButton("\u53D6\u6D88");
		toolBar.add(btnCancel);
		
		formContent = new JPanel();
		
		add(formContent, BorderLayout.CENTER);
		formContent.setLayout(new BorderLayout());
		formContent.setBackground(Color.white);
	}

	public JButton getBtnCancel() {
		return btnCancel;
	}
	public JButton getBtnSave() {
		return btnSave;
	}
	public JButton getBtnModify() {
		return btnModify;
	}
	public JPanel getFormContent() {
		return formContent;
	}
}
